package service;

import java.util.List;

import persistence.model.TdfkfaUser;

public interface UserService {

    public String generatePlanUserId();
    
    public String generatePassword(int length);
    
    public String savePlanUser(TdfkfaUser user);
    
    public String saveExpertUser(TdfkfaUser expertUser);
    
    public String changePassword(String userName, String password);
    
    public TdfkfaUser getUserByUsername(String userName);
    
    public int savePlanToUser(String userName, Integer planId, String planName);
    
    public List<TdfkfaUser> getUserList(Integer unitId, int pageIndex, int pageSize);
    
    public int countUser();
    
    public TdfkfaUser getUser(Integer userId);
    
    public int updateUser(TdfkfaUser user);
    
    public void deleteUser(Integer[] ids);

    public List<TdfkfaUser> getUserListByAuthority(Integer auth, int pageIndex, int pageSize);

	public int countUserByAuthority(Integer integer);
}
